package spark.math;

public class Random
{
	private static Random instance = new Random();
	private java.util.Random random = new java.util.Random(System.currentTimeMillis());

	public static Random getInstance() { return instance; }

	public void nextBytes(byte[] bytes) {
		random.nextBytes(bytes);
	}

	public int nextInt() {
		return random.nextInt();
	}

	public int nextInt(int n) {
		return random.nextInt(n);
	}

	public long nextLong() {
		return random.nextLong();
	}

	public boolean nextBoolean() {
		return random.nextBoolean();
	}

	public float nextFloat() {
		return random.nextFloat();
	}

	public double nextDouble() {
		return random.nextDouble();
	}

	public double nextGaussian() {
		return random.nextGaussian();
	}
}
